#!/usr/bin/env node

const Radio = require('./04-radio');

const myRadio = new Radio({ freq: '98.7', name: 'My Station' });

myRadio.on('play', (station) => {
  console.log(`Playing ${station.name} at ${station.freq}`);
});

myRadio.on('stop', (station) => {
  console.log(`Stopped playing ${station.name} at ${station.freq}`);
});